﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using V5_Common;
using V5_BLL;

namespace V5_EShop.Controls
{
    public partial class LoginLabel : BasicControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Cookies["membername"] != null && Request.Cookies["memberid"] != null)
            {
                int userid = Input.SetInt(Request.Cookies["memberid"].Value);
                user = new BLLUser().GetModel(userid);
                this.MultiViewLogin.ActiveViewIndex = 1;
            }
            else
            {
                this.MultiViewLogin.ActiveViewIndex = 0;
            }
        }
    }
}